package 新建文件夹;

public class Example21 {
    public static void main(String[] args) {
        int sum1 = add (1,2);
        int sum2 = add (1,2,3);
        double sum3 = add (1.2,1.3);
    }
    public static int add(int x, int y){
        return x + y;
    }
    public static int add(int x, int y, int z){
        return x + y;
    }
    public static  double add(double x,double y){
        return x+y;
    }
}
